﻿<UserControl x:Class="ContactTracing.CaseView.Controls.ShortCaseEntryForm"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:p="clr-namespace:ContactTracing.CaseView.Properties"
             xmlns:local="clr-namespace:ContactTracing.CaseView.Controls"
             xmlns:wpf="clr-namespace:ContactTracing.Controls;assembly=ContactTracing.WPF"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             IsVisibleChanged="UserControl_IsVisibleChanged"
             d:DesignHeight="3000" d:DesignWidth="890">
    <UserControl.Resources>


        <Style TargetType="{x:Type CheckBox}">
            <Setter Property="Validation.ErrorTemplate">
                <Setter.Value>
                    <ControlTemplate>
                        <DockPanel>
                            <Border BorderThickness="1" BorderBrush="#FFdc000c" Margin="0,-16,-120,48" HorizontalAlignment="Left" >
                                <Grid>
                                    <AdornedElementPlaceholder x:Name="adorner" />
                                </Grid>
                            </Border>
                            <Border x:Name="errorBorder" Background="#FFdc000c" Margin="0,0,0,0"
                                Opacity="1" CornerRadius="0"
                                IsHitTestVisible="False"
                                MinHeight="24" MaxWidth="200" >
                                <TextBlock Text="{Binding ElementName=adorner, Path=AdornedElement.(Validation.Errors)[0].ErrorContent}"
                                       Foreground="White" Margin="8,2,8,3" TextWrapping="Wrap" VerticalAlignment="Center"/>
                            </Border>
                        </DockPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style TargetType="{x:Type ComboBox}">
            <Setter Property="Validation.ErrorTemplate">
                <Setter.Value>
                    <ControlTemplate>
                        <DockPanel>
                            <Border BorderThickness="1" BorderBrush="#FFdc000c" VerticalAlignment="Top">
                                <Grid>
                                    <AdornedElementPlaceholder x:Name="adorner" />
                                </Grid>
                            </Border>
                            <Border x:Name="errorBorder" Background="#FFdc000c" Margin="8,0,0,0"
                                Opacity="1" CornerRadius="0"
                                IsHitTestVisible="False"
                                MinHeight="24" MaxWidth="200" >
                                <TextBlock Text="{Binding ElementName=adorner, Path=AdornedElement.(Validation.Errors)[0].ErrorContent}"
                                       Foreground="White" Margin="8,2,8,3" TextWrapping="Wrap" VerticalAlignment="Center"/>
                            </Border>
                        </DockPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style TargetType="local:YesNoUnknown">
            <Setter Property="Margin" Value="0, 2, 0, 2" />
        </Style>
    </UserControl.Resources>
    <Border BorderBrush="{StaticResource AccentBrush}" BorderThickness="1" Background="{StaticResource LightBackgroundBrush}"
            IsEnabled="{Binding IsSaving, Converter={StaticResource BooleanInverter}}"
            Padding="20">
        <Grid>

            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Grid Grid.Row="1" Grid.Column="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width=".65*" />
                    <ColumnDefinition Width=".34*" />
                </Grid.ColumnDefinitions>

                <Grid Grid.Column="1" HorizontalAlignment="Right">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>

                    <TextBlock Grid.Row="0" Grid.Column="0" FontSize="14" Text="{x:Static p:Resources.ShortFormCaseID}" TextWrapping="WrapWithOverflow" Margin="0, 0, 8, 0" FontWeight="SemiBold" VerticalAlignment="Center" />
                        <TextBox 
                            Grid.Row="0" Grid.Column="1"
                            x:Name="txtID" 
                            FontSize="16" 
                            Width="120" 
                            CharacterCasing="Upper"
                            TextChanged="txtID_TextChanged" 
                            IsEnabled="{Binding IsLocked, Converter={StaticResource BooleanInverter}}"
                            Text="{Binding ID, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />

                    <!-- field(s) for long form -->
                    <TextBlock Visibility="Visible"  Margin="0, 16, 8, 0" Grid.Row="1" Grid.Column="0" FontSize="14" Text="{x:Static p:Resources.PrintedFormMainPageCaseID2}" TextWrapping="WrapWithOverflow" FontWeight="SemiBold" VerticalAlignment="Center" />
                    <TextBox Visibility="Visible"  Margin="0, 16, 0, 0" 
                            Grid.Row="1" Grid.Column="1"
                            x:Name="txtID2" 
                            FontSize="16" 
                            Width="120" 
                            CharacterCasing="Upper"
                            Text="{Binding OriginalID  , Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />
                    <!-- field(s) for end long form -->


                    <TextBlock Margin="0, 16, 8, 0" Grid.Row="2" Grid.Column="0" FontSize="14" Text="{x:Static p:Resources.ShortFormStatusAsOfCurrentDate}" TextWrapping="Wrap" VerticalAlignment="Center" />
                    <TextBox Margin="0, 16, 0, 0" Grid.Row="2" Grid.Column="1"
                            x:Name="txtCurrStatus" 
                            IsEnabled="False"
                            FontSize="16" 
                            Width="120" 
                            CharacterCasing="Upper"
                            Text="{Binding CurrentStatus, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                </Grid>
                

                <StackPanel Grid.Column="0">
                    <Rectangle HorizontalAlignment="Left" Width="100" Height="6" Fill="{StaticResource AccentBrush}" />
                    <TextBlock FontSize="24" Foreground="#444444" FontWeight="Bold" HorizontalAlignment="Stretch" Text="{x:Static p:Resources.ShortFormTitle}" TextWrapping="Wrap" />
                    
                    <StackPanel Height="10" />
                    
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{x:Static p:Resources.ShortFormEpiCaseClass}" FontWeight="SemiBold" VerticalAlignment="Center" Margin="0, 0, 8, 0" />
                        
                        <Border BorderThickness="3" BorderBrush="Gold">
                            <ComboBox x:Name="cmbEpiCaseClassification" Width="120" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource EpiCaseClassificationListString}" 
                                      IsEnabled="{Binding IsLocked, Converter={StaticResource BooleanInverter}}"
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding EpiCaseClassification, 
                                Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, 
                                ValidatesOnDataErrors=True, 
                                ValidatesOnNotifyDataErrors=True, 
                                ValidatesOnExceptions=True, 
                                NotifyOnValidationError=True}" />
                        </Border>
                        
                        <StackPanel Width="10" />
                        <TextBlock Text="{x:Static p:Resources.ShortFormDateReport}" FontWeight="SemiBold" VerticalAlignment="Center" Margin="0, 0, 8, 0" />
                        <DatePicker SelectedDate="{Binding DateReport, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"
                                    IsEnabled="{Binding IsLocked, Converter={StaticResource BooleanInverter}}" />
                    </StackPanel>

                    <StackPanel Height="10" />

                    <!--Fix for issue # 17109 - Added controls -->

                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{x:Static p:Resources.PrintedRecordStatus}" FontWeight="Bold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                    </StackPanel>
                    
                    <StackPanel Height="4" />
                    
                    <StackPanel Orientation="Horizontal">
                    <CheckBox IsChecked="{Binding RecordStatusComplete, Converter={StaticResource YesToCheckedConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Content="{x:Static p:Resources.RecComplete}" Margin="0, 0, 4, 0"/>
                        <TextBlock Text="  "/>
                        <CheckBox IsChecked="{Binding RecordStatusNoCRF, Converter={StaticResource YesToCheckedConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Content="{x:Static p:Resources.RecNoCRF}" Margin="0, 0, 4, 0" />
                        <TextBlock Text="  "/>
                        <CheckBox IsChecked="{Binding RecordStatusMissCRF, Converter={StaticResource YesToCheckedConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Content="{x:Static p:Resources.RecMissCRF}" Margin="0, 0, 4, 0" />
                        <TextBlock Text="  "/>
                        <CheckBox IsChecked="{Binding RecordStatusPenLab, Converter={StaticResource YesToCheckedConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Content="{x:Static p:Resources.RecPendingLab}" Margin="0, 0, 4, 0" />
                        <TextBlock Text="  "/>
                        <CheckBox IsChecked="{Binding RecordStatusPenOut, Converter={StaticResource YesToCheckedConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Content="{x:Static p:Resources.RecPendingOutcome}" Margin="0, 0, 4, 0" />
                    </StackPanel>

                    <StackPanel Height="4" />
                </StackPanel>
                
                
            </Grid>

            <Border BorderThickness="1" BorderBrush="Silver" Grid.Row="2" Grid.Column="0" IsEnabled="{Binding IsLocked, Converter={StaticResource BooleanInverter}}">
                <ScrollViewer x:Name="svMain" VerticalScrollBarVisibility="Visible" Grid.Row="1" Grid.Column="0" VerticalAlignment="Stretch" 
                              >
                <!-- data entry stuff -->
                    <StackPanel Margin="6">

                        <Grid HorizontalAlignment="Stretch" Height="26" Background="{StaticResource EditionThemeAccentBrush}" Margin="-6, -6, -6, 0">
                            <TextBlock HorizontalAlignment="Left" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="Section 1" />
                            <TextBlock HorizontalAlignment="Center" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="{x:Static p:Resources.PrintedFormSection1Title}" />
                        </Grid>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormPatientSurname}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox Width="180" VerticalAlignment="Center" Text="{Binding Surname, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            
                            <StackPanel Width="10" />

                            <TextBlock Text="{x:Static p:Resources.PrintedFormPatientOtherNames}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox Width="180" VerticalAlignment="Center" Text="{Binding OtherNames, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                        </StackPanel>
                        
                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormAge}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox x:Name="tboxAge"
                                Width="60"
                                     PreviewTextInput="tboxAge_PreviewTextInput"
                                     VerticalAlignment="Center" Text="{Binding Age, TargetNullValue='', Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnNotifyDataErrors=True}" />

                            <StackPanel Width="10" />

                            <TextBlock Text="{x:Static p:Resources.ShortFormAgeUnit}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox Width="90" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource AgeUnitListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding AgeUnitString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                            <StackPanel Width="10" />

                            <TextBlock Text="{x:Static p:Resources.PrintedFormGender}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <!--<ComboBox Width="90" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource SexListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding Sex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />-->
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding Sex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Male}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding Sex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.Female}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                        </StackPanel>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormPhone}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox Width="150" VerticalAlignment="Center" Text="{Binding PhoneNumber, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                        </StackPanel>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormStatus}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <!--<ComboBox Width="90" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource AliveDeadListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding StatusReport, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />-->
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox x:Name="checkboxStatusReportAlive" 
                                          IsChecked="{Binding StatusReport, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.Alive}" Margin="0, 0, 4, 0" />
                                <CheckBox x:Name="checkboxStatusReportDead" 
                                          IsChecked="{Binding StatusReport, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnNotifyDataErrors=True, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Dead}" Margin="0, 0, 4, 0" />                               
                            </StackPanel>

                            <StackPanel Width="10" />

                            <TextBlock Text="{x:Static p:Resources.PrintedFormIfDead}" FontStyle="Italic" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBlock Text="{x:Static p:Resources.PrintedFormDateDeath}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <DatePicker 
                                IsEnabled="{Binding StatusReport, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource YesToEnabledConverter}}"
                                SelectedDate="{Binding DateDeath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnNotifyDataErrors=True}" />

                            <!-- long form field -->
                            <CheckBox
                                Visibility="Collapsed"
                                Content="{x:Static p:Resources.Estimated}" Margin="4, 0, 0, 0" VerticalAlignment="Center"
                                      IsEnabled="{Binding StatusReport, Converter={StaticResource YesToEnabledConverter}}"
                                    IsChecked="{Binding DateDeathEst, UpdateSourceTrigger=PropertyChanged}" />
                            <!-- end long form field -->
                        </StackPanel>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormResidence}" FontWeight="Bold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                        </StackPanel>

                        <StackPanel Height="4" />
                        
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormHeadHousehold}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox Width="180" VerticalAlignment="Center" Text="{Binding HeadOfHousehold, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                            <StackPanel Width="10" />

                            <TextBlock Text="{x:Static p:Resources.PrintedFormCountry}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox x:Name="cmbCountryRes" 
                                Width="120" 
                                IsEditable="True" 
                                VerticalAlignment="Center" 
                                ItemsSource="{Binding RelativeSource={RelativeSource
                                Mode=FindAncestor,
                                AncestorType={x:Type Window}},
                                Path=DataContext.Countries}" 
                                LostFocus="ComboBox_LostFocus"
                                Text="{Binding Country, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            <TextBox x:Name="txtCountryRes" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding Country, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            
                            <StackPanel Width="10" />

                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, Converter={StaticResource ColonAdder}, FallbackValue=Adm1:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox x:Name="cmbDistrictRes" 
                                      Width="120" 
                                      IsEditable="True" 
                                      VerticalAlignment="Center" 
                                      ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                      LostFocus="cmbDistrictRes_LostFocus"
                                      SelectionChanged="cmbDistrictRes_SelectionChanged"
                                      Text="{Binding District, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            <TextBox x:Name="txtDistrictRes" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding District, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                        </StackPanel>

                        <StackPanel Height="4" />
                        
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm2, Converter={StaticResource ColonAdder}, FallbackValue=Adm2:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox x:Name="cmbSCRes" 
                                      Width="120" 
                                      IsEditable="True" 
                                      VerticalAlignment="Center" 
                                      LostFocus="cmbSCRes_LostFocus"
                                      />
                            <TextBox x:Name="txtSCRes" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      />

                            <StackPanel Width="10" />

                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm3, Converter={StaticResource ColonAdder}, FallbackValue=Adm3:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox x:Name="cmbParishRes" Width="120" IsEditable="True"  VerticalAlignment="Center" LostFocus="cmbParishRes_LostFocus" Text="{Binding Parish, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            <TextBox x:Name="txtParishRes" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding Parish, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            
                            <StackPanel Width="10" />

                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm4, Converter={StaticResource ColonAdder}, FallbackValue=Adm4:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox x:Name="cmbVillageRes" Width="120" IsEditable="True" VerticalAlignment="Center" LostFocus="cmbVillageRes_LostFocus" Text="{Binding Village, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            <TextBox x:Name="txtVillageRes" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding Village, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                        </StackPanel>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormOccupationRes}" FontWeight="Bold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                        </StackPanel>

                        <StackPanel Height="4" />

                        <StackPanel Orientation="Horizontal">
                            <CheckBox x:Name="HCW" Content="{x:Static p:Resources.PrintedFormHCW}" Margin="0, 0, 8, 0" IsChecked="{Binding IsHCW, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" VerticalAlignment="Center" />
                            <TextBlock Margin="0, 0, 8, 0" VerticalAlignment="Center" Text="{x:Static p:Resources.PrintedFormHCWPosition}"/>
                            <TextBox 
                                IsEnabled="{Binding ElementName=HCW, Path=IsChecked}"
                                Width="150" VerticalAlignment="Center" Text="{Binding OccupationHCWPosition, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            
                            <StackPanel Width="10" />

                            <TextBlock Text="{x:Static p:Resources.PrintedFormHCWFacility}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox 
                                IsEnabled="{Binding ElementName=HCW, Path=IsChecked}"
                                Width="150" VerticalAlignment="Center" Text="{Binding OccupationHCWFacility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                        </StackPanel>

                        <StackPanel Height="4" />

                        <StackPanel Orientation="Horizontal">
                            <CheckBox x:Name="checkboxOccupationOther" Content="{x:Static p:Resources.Other}" Margin="0, 0, 8, 0" IsChecked="{Binding IsOtherOccupation}" VerticalAlignment="Center" />
                            <!--<TextBox Width="150" VerticalAlignment="Center" Text="{Binding ...}" />-->
                            <Button Width="130" Content="{x:Static p:Resources.ShortFormSpecifyButton}" IsEnabled="{Binding ElementName=checkboxOccupationOther, Path=IsChecked}" Command="{Binding ToggleOccupationsDisplayCommand}" />

                        </StackPanel>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormLocationOnset}" FontWeight="Bold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                        </StackPanel>

                        <StackPanel Height="4" />

                        <StackPanel Orientation="Horizontal">

                            <TextBlock Text="{x:Static p:Resources.PrintedFormCountry}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox 
                                x:Name="cmbCountryOnset"
                                Width="110" 
                                      ItemsSource="{Binding RelativeSource={RelativeSource
                                Mode=FindAncestor,
                                AncestorType={x:Type Window}},
                                Path=DataContext.Countries}" 
                                      IsEditable="True" 
                                      VerticalAlignment="Center" Text="{Binding CountryOnset, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            <TextBox x:Name="txtCountryOnset" 
                                      Width="110" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding CountryOnset, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                            <StackPanel Width="10" />

                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, Converter={StaticResource ColonAdder}, FallbackValue=Adm1:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox 
                                x:Name="cmbDistrictOnset"
                                ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                      SelectionChanged="cmbDistrictOnset_SelectionChanged"
                                IsEditable="True"
                                Width="110" VerticalAlignment="Center" Text="{Binding DistrictOnset, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            <TextBox x:Name="txtDistrictOnset" 
                                      Width="110" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding DistrictOnset, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                            <StackPanel Width="10" />

                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm2, Converter={StaticResource ColonAdder}, FallbackValue=Adm2:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox 
                                x:Name="cmbSCOnset"
                                IsEditable="True"
                                Width="110" VerticalAlignment="Center" />
                            <TextBox x:Name="txtSCOnset" 
                                      Width="110" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed" />

                            <StackPanel Width="10" />

                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm4, Converter={StaticResource ColonAdder}, FallbackValue=Adm4:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox 
                                x:Name="cmbVillageOnset"
                                IsEditable="True"
                                Width="110" VerticalAlignment="Center" Text="{Binding VillageOnset, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            <TextBox x:Name="txtVillageOnset" 
                                      Width="110" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding VillageOnset, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                        </StackPanel>

                        <StackPanel Height="8" />

                        <!-- long form fields -->
                        <StackPanel Orientation="Horizontal" Visibility="Collapsed">
                            <TextBlock FontStyle="Italic" Text="{x:Static p:Resources.PrintedFormIfDifferentFromPermRes}" VerticalAlignment="Center" Margin="0, 0, 3, 0" />
                            <TextBlock Text="{x:Static p:Resources.PrintedFormDatesResidingAtLocation}" VerticalAlignment="Center"  Margin="0, 0, 4, 0" />

                            <DatePicker
                                    SelectedDate="{Binding DateOnsetLocalStart, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            <TextBlock Margin="5, 0, 5, 0" VerticalAlignment="Center">-</TextBlock>
                            <DatePicker
                                    SelectedDate="{Binding DateOnsetLocalEnd, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                        </StackPanel>

                        <StackPanel Height="8" Visibility="Collapsed" />
                        <!-- end long form fields -->

                        <Grid HorizontalAlignment="Stretch" Height="26" Background="{StaticResource EditionThemeAccentBrush}" Margin="-6, 0, -6, 0">
                            <TextBlock HorizontalAlignment="Left" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="Section 2" />
                            <TextBlock HorizontalAlignment="Center" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="{x:Static p:Resources.PrintedFormSection2Title}" />
                        </Grid>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormDateOnset}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <DatePicker SelectedDate="{Binding DateOnset, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                        </StackPanel>

                        <StackPanel Height="8" />
                        <StackPanel Height="1" HorizontalAlignment="Stretch" Background="Silver" />
                        <StackPanel Height="8" />

                        <TextBlock FontWeight="Bold" FontStyle="Italic" Text="{x:Static p:Resources.PrintedFormPleaseTickSymptoms}" />
                        <!--<TextBlock FontStyle="Italic">
                            <Run FontWeight="Bold">
                                Please mark an answer for 
                            </Run>
                            
                            <Run FontWeight="Bold"  TextDecorations="Underline">
                                ALL
                            </Run>
                            
                            <Run FontWeight="Bold">
                                symptoms indicating if they occurred during
                            </Run>
                            
                            <Run FontWeight="Bold" TextDecorations="Underline">
                                this illness
                            </Run>
                            
                            <Run FontWeight="Bold">
                                :
                            </Run>
                            
                        </TextBlock>-->
                            
                        <StackPanel Height="8" />
                        
                        <!-- Symptoms Grid-->
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width=".3*" />
                                <ColumnDefinition Width=".2*" />
                                <ColumnDefinition Width=".3*" />
                                <ColumnDefinition Width=".2*" />
                            </Grid.ColumnDefinitions>
                            
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomFever}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomFever}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomFever, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomFever, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomFever, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomFever, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />-->

                            <TextBlock Text="{x:Static p:Resources.PrintedFormSymptomVomiting}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="1" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomVomiting}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomVomiting, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomVomiting, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomVomiting, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomVomiting}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomDiarrhea}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="2" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomDiarrhea}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomDiarrhea, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomDiarrhea, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomDiarrhea, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomDiarrhea}" />-->

                            <TextBlock Text="{x:Static p:Resources.PrintedFormSymptomFatigue}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="3" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomFatigue}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomFatigue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomFatigue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomFatigue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="3" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomFatigue}" />-->

                            <TextBlock Text="{x:Static p:Resources.PrintedFormSymptomAnorexia}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="4" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomAnorexia}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomAnorexia, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomAnorexia, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomAnorexia, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="4" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomAnorexia}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomAbdPain}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="5" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="5" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomAbdPain}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomAbdPain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomAbdPain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomAbdPain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="5" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomAbdPain}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomChestPain}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="6" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="6" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomChestPain}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomChestPain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomChestPain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomChestPain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="6" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomChestPain}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomMusclePain}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="7" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="7" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomMusclePain}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="7" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomMusclePain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomMusclePain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomMusclePain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="7" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomMusclePain}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomJointPain}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="8" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="8" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomJointPain}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="8" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomJointPain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomJointPain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomJointPain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="8" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomJointPain}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomHeadache}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="9" Grid.Column="0" />
                            <!--<ComboBox Width="90" Grid.Row="9" Grid.Column="1" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomHeadache}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="9" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomHeadache, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomHeadache, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomHeadache, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="9" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomHeadache}" />-->


                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomCough}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="0" Grid.Column="2" />
                            <!--<ComboBox Width="90" Grid.Row="0" Grid.Column="3" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomCough}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomCough, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomCough, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomCough, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="0" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomCough}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomDiffBreathe}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="2" />
                            <!--<ComboBox Width="90" Grid.Row="1" Grid.Column="3" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomDiffBreathe}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomDiffBreathe, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomDiffBreathe, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomDiffBreathe, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="1" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomDiffBreathe}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomDiffSwallow}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2" />
                            <!--<ComboBox Width="90" Grid.Row="2" Grid.Column="3" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomDiffSwallow}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomDiffSwallow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomDiffSwallow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomDiffSwallow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="2" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomDiffSwallow}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomSoreThroat}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2" />
                            <!--<ComboBox Width="90" Grid.Row="3" Grid.Column="3" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomSoreThroat}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomSoreThroat, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomSoreThroat, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomSoreThroat, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="3" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomSoreThroat}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomConjunctivitis}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2" />
                            <!--<ComboBox Width="90" Grid.Row="3" Grid.Column="3" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomSoreThroat}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomConjunctivitis, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomConjunctivitis, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomConjunctivitis, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="3" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomSoreThroat}" />-->

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomRash}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="5" Grid.Column="2" />
                            <!--<ComboBox Width="90" Grid.Row="3" Grid.Column="3" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomSoreThroat}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomRash, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomRash, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomRash, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>

                            <TextBlock Text="{x:Static p:Resources.AnalysisSymptomHiccups}" Margin="0, 0, 8, 0" VerticalAlignment="Center" Grid.Row="6" Grid.Column="2" />
                            <!--<ComboBox Width="90" Grid.Row="4" Grid.Column="3" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomHiccups}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomHiccups, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomHiccups, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomHiccups, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="4" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomHiccups}" />-->

                            <TextBlock Text="{x:Static p:Resources.PrintedFormSymptomUnexBleed}" Margin="0, 0, 8, 0" FontWeight="SemiBold" VerticalAlignment="Center" Grid.Row="8" Grid.Column="2" />
                            <!--<ComboBox Width="90" Grid.Row="6" Grid.Column="3" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding UnexplainedBleeding}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="8" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomUnexplainedBleeding, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomUnexplainedBleeding, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomUnexplainedBleeding, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>

                            <Button Width="130" Grid.Column="3" Grid.Row="9" Content="{x:Static p:Resources.ShortFormSpecifyButton}" IsEnabled="{Binding SymptomUnexplainedBleeding, Converter={StaticResource YesToEnabledConverter}}" Command="{Binding ToggleBleedingDisplayCommand}" />
                            <!--<local:YesNoUnknown Grid.Row="6" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding UnexplainedBleeding}" />-->

                            <!--<TextBlock Text="If yes, please specify:" Margin="16, 0, 8, 0" VerticalAlignment="Center" Grid.Row="6" Grid.Column="2" />
                            <TextBox Width="120" Text="{Binding ...}" Grid.Row="6" VerticalAlignment="Center" Grid.Column="3" />-->

                            <TextBlock Text="{x:Static p:Resources.PrintedFormSymptomOtherNonHemorrhagicNoBreak}" Margin="0, 0, 8, 0" FontWeight="SemiBold" VerticalAlignment="Center" Grid.Row="10" Grid.Column="2" />
                            <!--<ComboBox Width="90" Grid.Row="8" Grid.Column="3" ItemsSource="{StaticResource YNUListString}" 
                                      VerticalAlignment="Center"
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding SymptomOtherNonHemorrhagic}" />-->
                            <StackPanel Orientation="Horizontal" Grid.Row="10" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding SymptomOtherNonHemorrhagic, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomOtherNonHemorrhagic, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding SymptomOtherNonHemorrhagic, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown Grid.Row="8" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding SymptomOtherNonHemorrhagic}" />-->

                            <!--<TextBlock Text="If yes, please specify:" Margin="16, 0, 8, 0" VerticalAlignment="Center" Grid.Row="9" Grid.Column="2" />-->
                            <TextBlock Grid.Row="11" Grid.Column="2" Margin="64, 0, 8, 0" VerticalAlignment="Center">
                                                    <Run FontStyle="Italic" Text="{x:Static p:Resources.PrintedFormIfYes}" />
                                                    <Run Text="{x:Static p:Resources.PrintedFormPleaseSpecify}" />
                            </TextBlock>
                            <TextBox Width="120" 
                                     IsEnabled="{Binding SymptomOtherNonHemorrhagic, Converter={StaticResource YesToEnabledConverter}}"
                                     Text="{Binding SymptomOtherNonHemorrhagicSpecify, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" 
                                     Grid.Row="11" 
                                     VerticalAlignment="Center" 
                                     Grid.Column="3" />

                        </Grid>

                        <StackPanel Height="8" />

                        <Grid HorizontalAlignment="Stretch" Height="26" Background="{StaticResource EditionThemeAccentBrush}" Margin="-6, 0, -6, 0">
                            <TextBlock HorizontalAlignment="Left" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="Section 3" />
                            <TextBlock HorizontalAlignment="Center" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="{x:Static p:Resources.PrintedFormSection3Title}" />
                        </Grid>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormIsPatientHospitalized}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <!--<ComboBox
                                Width="90" HorizontalAlignment="Left" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding HospitalizedCurrent}" />-->
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding HospitalizedCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding HospitalizedCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding HospitalizedCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding HospitalizedCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />-->
                        </StackPanel>

                        <StackPanel Height="4" />

                        <StackPanel Orientation="Horizontal" IsEnabled="{Binding HospitalizedCurrent, Converter={StaticResource YesToEnabledConverter}}">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormIfYes}" FontStyle="Italic" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBlock Text="{x:Static p:Resources.PrintedFormDateHospAdmit}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <DatePicker SelectedDate="{Binding DateHospitalCurrentAdmit, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                        </StackPanel>

                        <StackPanel Height="4" />

                        <StackPanel Orientation="Horizontal" Margin="30, 0, 0, 0" IsEnabled="{Binding HospitalizedCurrent, Converter={StaticResource YesToEnabledConverter}}">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormHealthFacilityName}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox Width="150" VerticalAlignment="Center" Text="{Binding CurrentHospital, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                            <StackPanel Width="10" />

                            <!--<TextBlock Text="Sub-County:" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox Width="120" VerticalAlignment="Center" Text="{Binding ...}" />

                            <StackPanel Width="10" />-->

                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, Converter={StaticResource ColonAdder}, FallbackValue=Adm1:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox x:Name="cmbDistrictHosp"
                                ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                IsEditable="True"
                                Width="120" VerticalAlignment="Center" Text="{Binding DistrictHosp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                            <TextBox x:Name="txtDistrictHosp" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding DistrictHosp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            
                        </StackPanel>

                        <StackPanel Height="4" />

                        <StackPanel Orientation="Horizontal" Margin="30, 0, 0, 0" IsEnabled="{Binding HospitalizedCurrent, Converter={StaticResource YesToEnabledConverter}}">
                            <TextBlock Text="{x:Static p:Resources.ShortFormCurrentlyInIsolation}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <!--<ComboBox Width="90" HorizontalAlignment="Left" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding IsolationCurrent}" />-->
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding IsolationCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding IsolationCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding IsolationCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding IsolationCurrent}" />-->
                        </StackPanel>

                        <StackPanel Height="4" />

                        <StackPanel Orientation="Horizontal" Margin="60, 0, 0, 0" IsEnabled="{Binding HospitalizedCurrent, Converter={StaticResource YesToEnabledConverter}}">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormIfYes}" FontStyle="Italic" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBlock Text="{x:Static p:Resources.ShortFormDateIso}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <DatePicker SelectedDate="{Binding DateIsolationCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" IsEnabled="{Binding IsolationCurrent, Converter={StaticResource YesToEnabledConverter}}"/>
                        </StackPanel>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormPrevHospitalized}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <!--<ComboBox
                                Width="90" HorizontalAlignment="Left" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding HospitalizedPast}" />-->
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding HospitalizedPast, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding HospitalizedPast, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding HospitalizedPast, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding HospitalizedPast}" />-->
                        </StackPanel>

                        <StackPanel Height="4" />

                        <StackPanel Orientation="Horizontal" IsEnabled="{Binding HospitalizedPast, Converter={StaticResource YesToEnabledConverter}}">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormIfYes}" FontStyle="Italic" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBlock Text="{x:Static p:Resources.PrintedFormHospColHeaderDatesOfHospitalization}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <DatePicker SelectedDate="{Binding DateHospitalPastStart1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                            <TextBlock Text="-" Margin="4, 0, 4, 0" VerticalAlignment="Center" />
                            <DatePicker SelectedDate="{Binding DateHospitalPastEnd1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                        </StackPanel>

                        <StackPanel Height="4" />

                        <StackPanel Orientation="Horizontal" Margin="30, 0, 0, 0" IsEnabled="{Binding HospitalizedPast, Converter={StaticResource YesToEnabledConverter}}">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormHealthFacilityName}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox Width="120" VerticalAlignment="Center" Text="{Binding HospitalPast1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                            <StackPanel Width="10" />

                            <!--<TextBlock Text="Sub-County:" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <TextBox Width="120" VerticalAlignment="Center" Text="{Binding ...}" />

                            <StackPanel Width="10" />-->

                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, Converter={StaticResource ColonAdder}, FallbackValue=Adm1:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox x:Name="cmbHospitalDistrict1"
                                ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                IsEditable="True"
                                Width="120" VerticalAlignment="Center" Text="{Binding HospitalDistrict1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            <TextBox x:Name="txtHospitalDistrict1" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding HospitalDistrict1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                            <StackPanel Width="10" />

                            <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm4, Converter={StaticResource ColonAdder}, FallbackValue=Adm4:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                            <ComboBox  x:Name="cmbHospitalVillage1" 
                                IsEditable="True"
                                Width="120" VerticalAlignment="Center" Text="{Binding HospitalVillage1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            <TextBox x:Name="txtHospitalVillage1" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding HospitalVillage1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                        </StackPanel>










                        <!-- PAGE 2 START -->
                        <!-- PAGE 2 START -->
                        <!-- PAGE 2 START -->
                        <!-- PAGE 2 START -->
                        <!-- PAGE 2 START -->
                        <!-- PAGE 2 START -->
                        <!-- PAGE 2 START -->

                        <StackPanel Height="8" />

                        <Grid HorizontalAlignment="Stretch" Height="26" Background="{StaticResource EditionThemeAccentBrush}" Margin="-6, 0, -6, 0">
                            <TextBlock HorizontalAlignment="Left" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="Section 4" />
                            <TextBlock HorizontalAlignment="Center" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="{x:Static p:Resources.PrintedFormSection4Title}" />
                        </Grid>

                        <StackPanel Height="8" />


                        <StackPanel Orientation="Horizontal">
                            <TextBlock FontStyle="Italic" VerticalAlignment="Center" Margin="0, 0, 8, 0">
                                <Run FontWeight="Bold" TextDecorations="Underline" Text="{x:Static p:Resources.PrintedFormInPastOneMonth}" />
                            </TextBlock>
                        </StackPanel>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Vertical">
                            <TextBlock FontWeight="DemiBold"  TextWrapping="Wrap" VerticalAlignment="Center" Margin="0, 0, 8, 0" Text="{x:Static p:Resources.PrintedFormQ1}">
                            </TextBlock>
                            
                            <StackPanel Height="2" />

                            <!--<ComboBox x:Name="Contact" Width="90" HorizontalAlignment="Left" ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding HadContact}" />-->
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding HadContact, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding HadContact, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding HadContact, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown HorizontalAlignment="Left" VerticalAlignment="Center" DataContext="{Binding HadContact}" />-->
                        </StackPanel>
                        
                        <StackPanel Height="8" />
                        
                        <StackPanel Margin="30, 0, 0, 0">
                            <TextBlock Text="{x:Static p:Resources.PrintedFormCompleteSourceCaseList}"
                                       FontStyle="Italic"
                                       VerticalAlignment="Center" 
                                       Margin="0, 0, 8, 0" />
                            
                        </StackPanel>

                        <StackPanel Height="8" />



                        <!--<StackPanel Height="8" />

                        <Button Content="Add Source Case" Width="Auto" HorizontalAlignment="Left" Padding="4, 2, 4, 2" Margin="0, 0, 0, 0" Command="{Binding AddSourceCaseCommand}" />
                        <ScrollViewer VerticalScrollBarVisibility="Disabled" Height="160" HorizontalScrollBarVisibility="Auto" HorizontalAlignment="Left">
                            <wpf:SourceCasesSummaryView ItemsSource="{Binding SourceCases}" HorizontalAlignment="Stretch" Height="140" />
                        </ScrollViewer>

                        <StackPanel Height="8" />-->


                        <!-- Grid for source cases -->

                        <Grid ShowGridLines="False" IsEnabled="{Binding HadContact, Converter={StaticResource YesToEnabledConverter}}" Visibility="Visible">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            
                            <Border Grid.Row="0" Grid.Column="0" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="0" Grid.Column="1" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="0" Grid.Column="2" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="0" Grid.Column="3" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="0" Grid.Column="4" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="0" Grid.Column="5" BorderBrush="Silver" BorderThickness="1, 1, 1, 0" />

                            <Border Grid.Row="1" Grid.Column="0" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="1" Grid.Column="1" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="1" Grid.Column="2" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="1" Grid.Column="3" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="1" Grid.Column="4" BorderBrush="Silver" BorderThickness="1, 1, 0, 0" />
                            <Border Grid.Row="1" Grid.Column="5" BorderBrush="Silver" BorderThickness="1, 1, 1, 0" />

                            <Border Grid.Row="2" Grid.Column="0" BorderBrush="Silver" BorderThickness="1, 1, 0, 1" />
                            <Border Grid.Row="2" Grid.Column="1" BorderBrush="Silver" BorderThickness="1, 1, 0, 1" />
                            <Border Grid.Row="2" Grid.Column="2" BorderBrush="Silver" BorderThickness="1, 1, 0, 1" />
                            <Border Grid.Row="2" Grid.Column="3" BorderBrush="Silver" BorderThickness="1, 1, 0, 1" />
                            <Border Grid.Row="2" Grid.Column="4" BorderBrush="Silver" BorderThickness="1, 1, 0, 1" />
                            <Border Grid.Row="2" Grid.Column="5" BorderBrush="Silver" BorderThickness="1, 1, 1, 1" />

                            <TextBlock Grid.Row="0" Grid.Column="0" Margin="4" Text="{x:Static p:Resources.ShortFormSourceColHeaderName}" FontWeight="SemiBold" />
                            <TextBlock Grid.Row="0" Grid.Column="1" Margin="4" Text="{x:Static p:Resources.PrintedFormSourceColHeaderRelation}" FontWeight="SemiBold" />
                            <TextBlock Grid.Row="0" Grid.Column="2" Margin="4" Text="{x:Static p:Resources.ShortFormDateLastContact}" FontWeight="SemiBold" />
                            <TextBlock Grid.Row="0" Grid.Column="3" Margin="4" Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm4, FallbackValue=Adm4}" FontWeight="SemiBold" />
                            <TextBlock Grid.Row="0" Grid.Column="4" Margin="4" Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, FallbackValue=Adm1}" FontWeight="SemiBold" />
                            <TextBlock Grid.Row="0" Grid.Column="5" Margin="4" TextWrapping="Wrap" Text="{x:Static p:Resources.ShortFormSourceColHeaderDeadAlive}" FontWeight="SemiBold" />
                            
                            <TextBox VerticalAlignment="Top" Grid.Row="1" Grid.Column="0" Margin="4" Text="{Binding ContactName1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            <TextBox VerticalAlignment="Top" Grid.Row="1" Grid.Column="1" Margin="4" Text="{Binding ContactRelation1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            <DatePicker VerticalAlignment="Top" Grid.Row="1" Grid.Column="2" Margin="4" SelectedDate="{Binding ContactEndDate1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                            <ComboBox x:Name="cmbContactVillage1" IsEditable="True" VerticalAlignment="Top" Grid.Row="1" Grid.Column="3" Margin="4" Text="{Binding ContactVillage1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            <TextBox x:Name="txtContactVillage1" VerticalAlignment="Top" Visibility="Collapsed" Grid.Row="1" Grid.Column="3" Margin="4" Text="{Binding ContactVillage1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />

                            <ComboBox  x:Name="cmbContactDistrict1"
                                       ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                IsEditable="True" VerticalAlignment="Top" Grid.Row="1" Grid.Column="4" Margin="4" Text="{Binding ContactDistrict1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            <TextBox x:Name="txtContactDistrict1" VerticalAlignment="Top" Visibility="Collapsed" Grid.Row="1" Grid.Column="4" Margin="4" Text="{Binding ContactDistrict1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            
                            <StackPanel VerticalAlignment="Top" Grid.Row="1" Grid.Column="5" Margin="4">
                                <ComboBox x:Name="ContactStatus1" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource AliveDeadBothListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding ContactStatus1}" />
                                
                                <StackPanel Height="4" />

                                <TextBlock Text="{x:Static p:Resources.PrintedFormDateDeath}" />
                                <DatePicker 
                                    SelectedDate="{Binding ContactDeathDate1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                                    IsEnabled="{Binding ContactStatus1, Converter={StaticResource AliveDeadToEnabledConverter}}" />
                            </StackPanel>

                            <TextBox VerticalAlignment="Top" Grid.Row="2" Grid.Column="0" Margin="4" Text="{Binding ContactName2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            <TextBox VerticalAlignment="Top" Grid.Row="2" Grid.Column="1" Margin="4" Text="{Binding ContactRelation2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            <DatePicker VerticalAlignment="Top" Grid.Row="2" Grid.Column="2" Margin="4" SelectedDate="{Binding ContactEndDate2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                            <ComboBox x:Name="cmbContactVillage2" IsEditable="True" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3" Margin="4" Text="{Binding ContactVillage2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            <TextBox x:Name="txtContactVillage2" VerticalAlignment="Top" Visibility="Collapsed" Grid.Row="2" Grid.Column="3" Margin="4" Text="{Binding ContactVillage2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            <ComboBox  x:Name="cmbContactDistrict2"
                                       ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                IsEditable="True" VerticalAlignment="Top" Grid.Row="2" Grid.Column="4" Margin="4" Text="{Binding ContactDistrict2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />

                            <TextBox x:Name="txtContactDistrict2" VerticalAlignment="Top" Visibility="Collapsed" Grid.Row="2" Grid.Column="4" Margin="4" Text="{Binding ContactDistrict2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            
                            <StackPanel VerticalAlignment="Top" Grid.Row="2" Grid.Column="5" Margin="4">
                                <ComboBox x:Name="ContactStatus2" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource AliveDeadBothListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding ContactStatus2}" />

                                <StackPanel Height="4" />

                                <TextBlock Text="{x:Static p:Resources.PrintedFormDateDeath}" />
                                <DatePicker 
                                    SelectedDate="{Binding ContactDeathDate2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                                    IsEnabled="{Binding ContactStatus2, Converter={StaticResource AliveDeadToEnabledConverter}}" />
                            </StackPanel>
                        </Grid>









                        <StackPanel Height="8" />

                        <StackPanel Orientation="Vertical">
                            <TextBlock FontWeight="DemiBold"  TextWrapping="Wrap" VerticalAlignment="Center" Margin="0, 0, 8, 0" Text="{x:Static p:Resources.PrintedFormQ2}" />

                            <StackPanel Height="2" />

                            <!--<ComboBox 
                                Width="90" HorizontalAlignment="Left" 
                                      ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding AttendFuneral}" />-->
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding AttendFuneral, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding AttendFuneral, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding AttendFuneral, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown HorizontalAlignment="Left" VerticalAlignment="Center" DataContext="{Binding AttendFuneral}" />-->

                            <StackPanel Height="4" />

                            <StackPanel Orientation="Horizontal" Margin="30, 0, 0, 0" IsEnabled="{Binding AttendFuneral, Converter={StaticResource YesToEnabledConverter}}">
                                <TextBlock Text="{x:Static p:Resources.PrintedFormIfYes}" FontStyle="Italic" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBlock Text="{x:Static p:Resources.ShortFormNameOfDeceasedPerson}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="120" VerticalAlignment="Center" Text="{Binding FuneralNameDeceased1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                
                                <StackPanel Width="10" />

                                <TextBlock Text="{x:Static p:Resources.PrintedFormIntRelationToPatient}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="120" VerticalAlignment="Center" Text="{Binding FuneralRelationDeceased1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="4" />

                            <StackPanel Orientation="Horizontal" Margin="60, 0, 0, 0" IsEnabled="{Binding AttendFuneral, Converter={StaticResource YesToEnabledConverter}}">

                                <TextBlock Text="{x:Static p:Resources.ShortFormDateFuneral}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <DatePicker SelectedDate="{Binding FuneralEndDate1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />
                                
                                <StackPanel Width="10" />
                                
                                <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm4, Converter={StaticResource ColonAdder}, FallbackValue=Adm4:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="120" VerticalAlignment="Center" Text="{Binding FuneralVillage1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                                <StackPanel Width="10" />

                                <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, Converter={StaticResource ColonAdder}, FallbackValue=Adm1:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <ComboBox  x:Name="cmbFuneralDistrict1" 
                                    ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                IsEditable="True" 
                                          Width="120" VerticalAlignment="Center" Text="{Binding FuneralDistrict1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                <TextBox x:Name="txtFuneralDistrict1" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding FuneralDistrict1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="4" />

                            <StackPanel Orientation="Horizontal" Margin="60, 0, 0, 0" IsEnabled="{Binding AttendFuneral, Converter={StaticResource YesToEnabledConverter}}">
                                <TextBlock Text="{x:Static p:Resources.PrintedFormFuneralColHeaderTouchBody}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <!--<ComboBox Width="90" HorizontalAlignment="Left" 
                                      ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding FuneralTouchBody1}" />-->
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                                    <CheckBox IsChecked="{Binding FuneralTouchBody1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                    <CheckBox IsChecked="{Binding FuneralTouchBody1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                    <CheckBox IsChecked="{Binding FuneralTouchBody1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                                </StackPanel>
                                <!--<local:YesNoUnknown HorizontalAlignment="Left" VerticalAlignment="Center" DataContext="{Binding FuneralTouchBody1}" />-->
                            </StackPanel>

                            
                        </StackPanel>

                        <StackPanel Height="8" />

                        <StackPanel Orientation="Vertical">
                            <TextBlock FontWeight="DemiBold"  TextWrapping="Wrap" VerticalAlignment="Center" Margin="0, 0, 8, 0" Text="{x:Static p:Resources.PrintedFormQ3}" />

                            <StackPanel Height="2" />

                            <!--<ComboBox 
                                x:Name="Travel"
                                Width="90" HorizontalAlignment="Left" 
                                      ItemsSource="{StaticResource YNUListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding Travel}" />-->
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                                <CheckBox IsChecked="{Binding Travel, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Yes}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding Travel, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.No}" Margin="0, 0, 4, 0" />
                                <CheckBox IsChecked="{Binding Travel, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormUnknown}" Margin="0, 0, 4, 0" />
                            </StackPanel>
                            <!--<local:YesNoUnknown x:Name="ynuTravel"  HorizontalAlignment="Left" VerticalAlignment="Center" DataContext="{Binding Travel}" />-->

                            <StackPanel Height="4" />

                            <!--<StackPanel Orientation="Horizontal" Margin="30, 0, 0, 0" IsEnabled="{Binding Travel, Converter={StaticResource YesToEnabledConverter}}">-->
                            <StackPanel Orientation="Horizontal" Margin="30, 0, 0, 0"  IsEnabled="{Binding Travel, Converter={StaticResource YesToEnabledConverter}}">
                                <TextBlock Text="{x:Static p:Resources.PrintedFormIfYes}" FontStyle="Italic" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm4, Converter={StaticResource ColonAdder}, FallbackValue=Adm4:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="120" VerticalAlignment="Center" Text="{Binding TravelVillage, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                                <StackPanel Width="10" />

                                <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, Converter={StaticResource ColonAdder}, FallbackValue=Adm1:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <ComboBox  x:Name="cmbTravelDistrict" 
                                    ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                IsEditable="True" 
                                    Width="120" VerticalAlignment="Center" Text="{Binding TravelDistrict, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                <TextBox x:Name="txtTravelDistrict" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding TravelDistrict, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="4" />

                            <StackPanel Orientation="Horizontal" Margin="30, 0, 0, 0" IsEnabled="{Binding Travel, Converter={StaticResource YesToEnabledConverter}}">
                                <TextBlock Text="{x:Static p:Resources.PrintedFormDates}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <DatePicker SelectedDate="{Binding TravelStartDate, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />
                                <TextBlock Text="-" Margin="4, 0, 4, 0" VerticalAlignment="Center" />
                                <DatePicker SelectedDate="{Binding TravelEndDate, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="8" />

                            <Grid HorizontalAlignment="Stretch" Height="26" Background="{StaticResource EditionThemeAccentBrush}" Margin="-6, 0, -6, 0">
                                <TextBlock HorizontalAlignment="Left" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="Section 5" />
                                <TextBlock HorizontalAlignment="Center" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="{x:Static p:Resources.PrintedFormSection5Title}" />
                            </Grid>

                            <StackPanel Height="8" />

                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{x:Static p:Resources.ShortFormFinalLabClass}" FontWeight="SemiBold" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <ComboBox Width="260" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource FinalLabClassificationListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding FinalLabClassification, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="8" />

                            <Button Content="Add New Lab Record" Width="Auto" HorizontalAlignment="Left" Padding="4, 2, 4, 2" Margin="0, 0, 0, 0" Command="{Binding AddLabResultCommand}" />
                            <ScrollViewer VerticalScrollBarVisibility="Disabled" Height="190" HorizontalScrollBarVisibility="Auto" HorizontalAlignment="Left">
                                <wpf:LabResultsSummaryView ItemsSource="{Binding LabResults}" HorizontalAlignment="Stretch" Height="170" />
                            </ScrollViewer>

                            <StackPanel Height="8" />

                            <Grid HorizontalAlignment="Stretch" Height="26" Background="{StaticResource EditionThemeAccentBrush}" Margin="-6, 0, -6, 0">
                                <TextBlock HorizontalAlignment="Left" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="Section 6" />
                                <TextBlock HorizontalAlignment="Center" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="{x:Static p:Resources.PrintedFormSection6Title}" />
                            </Grid>

                            <StackPanel Height="8" />

                            <StackPanel Orientation="Horizontal" Margin="0, 0, 0, 0">
                                <TextBlock Text="{x:Static p:Resources.PrintedFormIntName}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="140" VerticalAlignment="Center" Text="{Binding InterviewerName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                
                                <StackPanel Width="8" />

                                <TextBlock Text="{x:Static p:Resources.PrintedFormIntPhone}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="140" VerticalAlignment="Center" Text="{Binding InterviewerPhone, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                                <StackPanel Width="8" />

                                <TextBlock Text="{x:Static p:Resources.PrintedFormIntEmail}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="140" VerticalAlignment="Center" Text="{Binding InterviewerEmail, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="8" />

                            <!-- Long Form Interviewer start -->
                            <StackPanel Orientation="Horizontal" Margin="0, 0, 0, 0" Visibility="Visible">
                                <TextBlock Text="{x:Static p:Resources.PrintedFormIntPosition}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="140" VerticalAlignment="Center" Text="{Binding InterviewerPosition, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                                <StackPanel Width="8" />

                                <!--<TextBlock Text="{x:Static p:Resources.PrintedFormIntDistrict}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="140" VerticalAlignment="Center" Text="{Binding InterviewerDistrict, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />-->
                                <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, Converter={StaticResource ColonAdder}, FallbackValue=Adm1:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <ComboBox x:Name="cmbDistrictRes1" 
                                      Width="120" 
                                      IsEditable="True" 
                                      VerticalAlignment="Center" 
                                      ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                      Text="{Binding InterviewerDistrict, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                <TextBox x:Name="txtDistrictRes1" 
                                      Width="120" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding InterviewerDistrict, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                <StackPanel Width="8" />

                                <TextBlock Text="{x:Static p:Resources.PrintedFormIntHealthFacility}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <TextBox Width="140" VerticalAlignment="Center" Text="{Binding InterviewerHealthFacility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="8" Visibility="Visible" />

                            <StackPanel Orientation="Horizontal" Visibility="Visible">
                                <TextBlock Text="{x:Static p:Resources.PrintedFormIntInfoProvidedBy}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />

                                <CheckBox IsChecked="{Binding InterviewerInfoProvidedBy, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormIntPatient}" Margin="0, 0, 4, 0" VerticalAlignment="Center" />
                                <CheckBox IsChecked="{Binding InterviewerInfoProvidedBy, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.PrintedFormIntProxy}" Margin="0, 0, 4, 0" VerticalAlignment="Center" />

                                <!--<CheckBox x:Name="checkboxPatient" Content="{x:Static p:Resources.PrintedFormIntPatient}"  Margin="0, 0, 4, 0" VerticalAlignment="Center" />
                                <CheckBox x:Name="checkboxProxy" Content="{x:Static p:Resources.PrintedFormIntProxy}"  Margin="0, 0, 4, 0"  VerticalAlignment="Center" />-->

                                <TextBlock FontStyle="Italic" Margin="0, 0, 8, 0" VerticalAlignment="Center"
                                   Text="{x:Static p:Resources.PrintedFormIntIfProxy}"/>
                                <TextBlock Margin="0, 0, 8, 0" VerticalAlignment="Center"
                                   Text="{x:Static p:Resources.PrintedFormIntNameLower}"/>

                                <TextBox x:Name="txtProxyName" Width="180"
                                         Margin="0, 0, 8, 0" VerticalAlignment="Center"
                                              IsEnabled="{Binding InterviewerInfoProvidedBy, Converter={StaticResource NoToEnabledConverter}}"
                                    Text="{Binding ProxyName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />



                                <TextBlock Margin="0, 0, 8, 0" VerticalAlignment="Center"
                                   Text="{x:Static p:Resources.PrintedFormIntRelationToPatient}"/>

                                <TextBox x:Name="txtProxyRelation" Width="180"
                                             IsEnabled="{Binding InterviewerInfoProvidedBy, Converter={StaticResource NoToEnabledConverter}}"
                                    Text="{Binding ProxyRelation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            </StackPanel>

                            <StackPanel Height="8" Visibility="Visible" />
                            <!-- Long Form Interviewer end -->

                            <Grid HorizontalAlignment="Stretch" Height="26" Background="{StaticResource EditionThemeAccentBrush}" Margin="-6, 0, -6, 0">
                                <TextBlock HorizontalAlignment="Left" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="Section 7" />
                                <TextBlock HorizontalAlignment="Center" Margin="8, 0, 0, 0" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" Foreground="White" Text="{x:Static p:Resources.PrintedFormSection7Title}" />
                            </Grid>

                            <StackPanel Height="8" />
                            
                            <StackPanel>
                                <TextBlock 
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center" 
                                    FontWeight="Bold"
                                    FontStyle="Italic"
                                    TextWrapping="Wrap"
                                    Text="{x:Static p:Resources.PrintedFormOutcomeInstructions3}" />
                            </StackPanel>
                            
                            <StackPanel Height="8" />
                            
                            <StackPanel Orientation="Horizontal">
                                <TextBlock
                                    Text="{x:Static p:Resources.ShortFormDateOutcomeComp}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center" 
                                    FontWeight="DemiBold" />

                                <DatePicker SelectedDate="{Binding DateOutcomeInfoCompleted, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="8" />

                            <StackPanel Orientation="Horizontal">
                                <TextBlock
                                    Text="{x:Static p:Resources.PrintedFormFinalStatus}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center" 
                                    FontWeight="SemiBold" />
                                <!--<ComboBox Width="90" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource AliveDeadListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding FinalCaseStatus}" />-->
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                                    <CheckBox x:Name="checkboxFinalStatusAlive" 
                                              IsEnabled="{Binding ElementName=checkboxStatusReportDead, Path=IsChecked, Converter={StaticResource BooleanInverter}}"
                                              IsChecked="{Binding FinalCaseStatus, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.Alive}" Margin="0, 0, 4, 0" />
                                    <CheckBox x:Name="checkboxFinalStatusDead" 
                                              IsChecked="{Binding FinalCaseStatus, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.Dead}" Margin="0, 0, 4, 0" />

                                    <!-- IsEnabled="{Binding ElementName=checkboxStatusReportDead, Path=IsChecked, Converter={StaticResource BooleanInverter}}" -->
                                                                      
                                </StackPanel>
                            </StackPanel>
                            
                            <StackPanel Height="8" />
                            
                            <StackPanel>
                                <TextBlock 
                                    Text="{x:Static p:Resources.PrintedFormOutcomeInstructions4}"
                                    VerticalAlignment="Center"
                                    FontWeight="SemiBold"
                                    TextDecorations="Underline" />
                            </StackPanel>

                            <StackPanel Height="8" />

                            <StackPanel Orientation="Horizontal" IsEnabled="{Binding FinalCaseStatus, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource NoToEnabledConverter}}">
                                <TextBlock 
                                    Text="{x:Static p:Resources.ShortFormHospitalDischarge}" 
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center"/>
                                <TextBox Width="150" VerticalAlignment="Center" Text="{Binding HospitalDischarge, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                
                                <StackPanel Width="8" />

                                <TextBlock
                                    Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, Converter={StaticResource ColonAdder}, FallbackValue=Adm1:}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center"/>
                                <ComboBox x:Name="cmbHospitalDischargeDistrict"
                                    ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                IsEditable="True" 
                                    Width="140" VerticalAlignment="Center" Text="{Binding HospitalDischargeDistrict, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                <TextBox x:Name="txtHospitalDischargeDistrict" 
                                      Width="130" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding HospitalDischargeDistrict, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="8" />

                            <StackPanel Orientation="Horizontal" IsEnabled="{Binding FinalCaseStatus, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource NoToEnabledConverter}}">
                                <TextBlock
                                    Text="{x:Static p:Resources.PrintedFormDateDischargeHosp}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center"/>
                                <DatePicker SelectedDate="{Binding DateDischargeHospital, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="8" />

                            <StackPanel Orientation="Horizontal" IsEnabled="{Binding FinalCaseStatus, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource NoToEnabledConverter}}">
                                <TextBlock
                                    Text="{x:Static p:Resources.ShortFormIfPatientWasIsolated}"
                                    FontStyle="Italic"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center"/>
                                <TextBlock
                                    Text="{x:Static p:Resources.ShortFormDateDischargeIso}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center"/>
                                <DatePicker SelectedDate="{Binding DateDischargeIso, Mode=TwoWay, ValidatesOnNotifyDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                            </StackPanel>

                            <StackPanel Height="8" />

                            <StackPanel>
                                <TextBlock 
                                    Text="{x:Static p:Resources.PrintedFormOutcomeInstructions5}"
                                    VerticalAlignment="Center"
                                    FontWeight="SemiBold"
                                    TextDecorations="Underline" />
                            </StackPanel>

                            <StackPanel Height="8" />

                            <StackPanel Orientation="Horizontal" IsEnabled="{Binding FinalCaseStatus, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource YesToEnabledConverter}}">
                                <TextBlock
                                    Text="{x:Static p:Resources.PrintedFormDateDeath2}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center"/>
                                <DatePicker SelectedDate="{Binding DateDeath2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />

                                <StackPanel Width="8" />

                                <TextBlock
                                    Text="{x:Static p:Resources.PrintedFormPlaceDeath}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center" 
                                    FontWeight="SemiBold" />
                                <!--<ComboBox Width="90" Grid.Row="0" Grid.Column="1" ItemsSource="{StaticResource PlaceDeathListString}" 
                                      DisplayMemberPath="DisplayString"
                                      SelectedValuePath="ValueString"
                                      SelectedValue="{Binding PlaceDeath}" />-->
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                                    <CheckBox IsChecked="{Binding PlaceDeath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" Content="{x:Static p:Resources.PlaceDeathCommunity}" Margin="0, 0, 4, 0" />
                                    <CheckBox IsChecked="{Binding PlaceDeath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" Content="{x:Static p:Resources.PlaceDeathHospital}" Margin="0, 0, 4, 0" />
                                    <CheckBox IsChecked="{Binding PlaceDeath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" Content="{x:Static p:Resources.PlaceDeathOther}" Margin="0, 0, 4, 0" />
                                </StackPanel>
                            </StackPanel>

                            <StackPanel Height="8" />

                            <StackPanel Orientation="Horizontal" IsEnabled="{Binding FinalCaseStatus, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource YesToEnabledConverter}}">
                                <TextBlock
                                    Text="{x:Static p:Resources.PrintedFormDateFuneral}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center"/>
                                <DatePicker SelectedDate="{Binding DateFuneral, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />

                                <StackPanel Width="8" />

                                <TextBlock
                                    Text="{x:Static p:Resources.PrintedFormFuneralConductedBy}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center" 
                                    FontWeight="SemiBold" />
                                <CheckBox IsChecked="{Binding FuneralConductedFam, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                                          VerticalAlignment="Center"
                                          Content="{x:Static p:Resources.PrintedFormFamilyCommunity}" />

                                <StackPanel Width="4" />
                                
                                <CheckBox IsChecked="{Binding FuneralConductedOutbreakTeam, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                                          VerticalAlignment="Center"
                                          Content="{x:Static p:Resources.PrintedFormOutbreakBurialTeam}" />
                            </StackPanel>


                            <StackPanel Height="8" />

                            <StackPanel Orientation="Horizontal" IsEnabled="{Binding FinalCaseStatus, NotifyOnValidationError=False, ValidatesOnNotifyDataErrors=False, Converter={StaticResource YesToEnabledConverter}}">
                                <TextBlock
                                    Text="{x:Static p:Resources.ShortFormPlaceOfFuneral}"
                                    Margin="0, 0, 8, 0" 
                                    VerticalAlignment="Center"/>

                                <StackPanel Width="8" />

                                <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm1, Converter={StaticResource ColonAdder}, FallbackValue=Adm1:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <ComboBox 
                                x:Name="cmbDistrictFuneral"
                                ItemsSource="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Districts}" 
                                      SelectionChanged="cmbDistrictFuneral_SelectionChanged"
                                IsEditable="True"
                                Width="110" VerticalAlignment="Center" Text="{Binding DistrictFuneral, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                <TextBox x:Name="txtDistrictFuneral" 
                                      Width="110" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding DistrictFuneral, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />

                                <StackPanel Width="10" />

                                <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm2, Converter={StaticResource ColonAdder}, FallbackValue=Adm2:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <ComboBox 
                                    x:Name="cmbSCFuneral"
                                    IsEditable="True"
                                    Width="110" VerticalAlignment="Center" />
                                <TextBox x:Name="txtSCFuneral" 
                                      Width="110" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed" />

                                <StackPanel Width="10" />

                                <TextBlock Text="{Binding RelativeSource={RelativeSource
                                      Mode=FindAncestor,
                                      AncestorType={x:Type Window}},
                                      Path=DataContext.Adm4, Converter={StaticResource ColonAdder}, FallbackValue=Adm4:}" Margin="0, 0, 8, 0" VerticalAlignment="Center" />
                                <ComboBox x:Name="cmbVillageFuneral"
                                    IsEditable="True"
                                    Width="110" VerticalAlignment="Center" Text="{Binding VillageFuneral, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                <TextBox x:Name="txtVillageFuneral" 
                                      Width="110" 
                                      VerticalAlignment="Center" 
                                     Visibility="Collapsed"
                                      Text="{Binding VillageFuneral, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
                                
                            </StackPanel>

                            <StackPanel Height="16" />

                            <StackPanel Visibility="Collapsed">
                                <TextBlock FontWeight="Bold" FontStyle="Italic" Text="{x:Static p:Resources.PrintedFormPleaseTickSymptoms}" />
                            </StackPanel>

                            <StackPanel Height="8" />
                            
                            <StackPanel Visibility="Collapsed">
                                <Grid Margin="0, 0, 0, 0" Grid.Column="0">
                                    <Grid.Resources>
                                        <Style TargetType="CheckBox">
                                            <Setter Property="Margin" Value="0, 0, 6, 3" />
                                        </Style>
                                    </Grid.Resources>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>

                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />

                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>

                                    <TextBlock Grid.Row="0" Text="{x:Static p:Resources.AnalysisSymptomFever}" />
                                    <!--<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Margin="20, 0, 0, 0"  Orientation="Horizontal">
                                        <TextBlock Text="{x:Static p:Resources.PrintedFormIfYesTemp}" />
                                        <TextBox x:Name="txtFeverTemFinal" Width="32" 
                                                 IsEnabled="{Binding ElementName=cFeverYFinal, Path=IsChecked}"
                                                 DataContext="{Binding CaseCollectionView.CurrentItem}"
                                    Text="{Binding SymptomFeverTempFinal, UpdateSourceTrigger=LostFocus}" />
                                        <TextBlock FontSize="7pt">º C</TextBlock>

                                        <TextBlock Margin="8, 0, 0, 0">Source:</TextBlock>
                                        <ComboBox x:Name="cmbFeverTempSourceFinal" Width="100" 
                                                 IsEnabled="{Binding ElementName=cFeverYFinal, Path=IsChecked}"
                                                 />
                                    </StackPanel>-->

                                    <TextBlock Grid.Row="2"  Text="{x:Static p:Resources.PrintedFormSymptomVomiting}" />
                                    <TextBlock Grid.Row="3"  Text="{x:Static p:Resources.AnalysisSymptomDiarrhea}" />
                                    <TextBlock Grid.Row="4"  Text="{x:Static p:Resources.PrintedFormSymptomFatigue}" />
                                    <TextBlock Grid.Row="5"  Text="{x:Static p:Resources.PrintedFormSymptomAnorexia}" />
                                    <TextBlock Grid.Row="6"  Text="{x:Static p:Resources.AnalysisSymptomAbdPain}" />
                                    <TextBlock Grid.Row="7"  Text="{x:Static p:Resources.AnalysisSymptomChestPain}" />
                                    <TextBlock Grid.Row="8"  Text="{x:Static p:Resources.AnalysisSymptomMusclePain}" />
                                    <TextBlock Grid.Row="9"  Text="{x:Static p:Resources.AnalysisSymptomJointPain}" />
                                    <TextBlock Grid.Row="10"  Text="{x:Static p:Resources.AnalysisSymptomHeadache}" />
                                    <TextBlock Grid.Row="11"  Text="{x:Static p:Resources.AnalysisSymptomCough}" />
                                    <TextBlock Grid.Row="12"  Text="{x:Static p:Resources.AnalysisSymptomDiffBreathe}" />
                                    <TextBlock Grid.Row="13"  Text="{x:Static p:Resources.AnalysisSymptomDiffSwallow}" />
                                    <TextBlock Grid.Row="14"  Text="{x:Static p:Resources.AnalysisSymptomSoreThroat}" />
                                    <TextBlock Grid.Row="15"  Text="{x:Static p:Resources.PrintedFormSymptomJaundice}" />
                                    <TextBlock Grid.Row="16"  Text="{x:Static p:Resources.PrintedFormSymptomConjunctivitis}" />
                                    <TextBlock Grid.Row="17"  Text="{x:Static p:Resources.AnalysisSymptomRash}" />
                                    <TextBlock Grid.Row="18"  Text="{x:Static p:Resources.AnalysisSymptomHiccups}" />
                                    <TextBlock Grid.Row="19"  Text="{x:Static p:Resources.AnalysisSymptomPainEyes}" />
                                    <TextBlock Grid.Row="20"  Text="{x:Static p:Resources.AnalysisSymptomComa}" />
                                    <TextBlock Grid.Row="21"  Text="{x:Static p:Resources.AnalysisSymptomConfused}" />

                                    <TextBlock Grid.Row="22" FontWeight="Bold" Text="{x:Static p:Resources.PrintedFormSymptomOtherNonHemorrhagic}" />
                                    <StackPanel Orientation="Horizontal" Grid.Row="23" Grid.ColumnSpan="3">
                                        <TextBlock Margin="35, 0, 5, 5">
                                                    <Run FontStyle="Italic" Text="{x:Static p:Resources.PrintedFormIfYes}" />
                                                    <Run Text="{x:Static p:Resources.PrintedFormPleaseSpecify}" />
                                        </TextBlock>

                                        <TextBox Width="180" x:Name="txtOtherNonHemoFinal" 
                                                 IsEnabled="{Binding ElementName=cOtherNonHemorrhagicYFinal, Path=IsChecked}"
                                    Text="{Binding SymptomOtherHemoFinalSpecify, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                    </StackPanel>


                                    <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="1">
                                        <CheckBox x:Name="cFeverYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomFeverFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cFeverNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomFeverFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cFeverUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomFeverFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1">
                                        <CheckBox x:Name="cVomitingYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomVomitingFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cVomitingNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomVomitingFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cVomitingUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomVomitingFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="1">
                                        <CheckBox x:Name="cDiarrheaYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomDiarrheaFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cDiarrheaNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomDiarrheaFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cDiarrheaUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomDiarrheaFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
                                        <CheckBox x:Name="cFatigueYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomFatigueFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cFatigueNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomFatigueFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cFatigueUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomFatigueFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1">
                                        <CheckBox x:Name="cAnorexiaYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomAnorexiaFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cAnorexiaNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomAnorexiaFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cAnorexiaUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomAnorexiaFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.Column="1">
                                        <CheckBox x:Name="cAbdPainYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomAbdPainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cAbdPainNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomAbdPainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cAbdPainUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomAbdPainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="7" Grid.Column="1">
                                        <CheckBox x:Name="cChestPainYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomChestPainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cChestPainNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomChestPainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cChestPainUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomChestPainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="8" Grid.Column="1">
                                        <CheckBox x:Name="cMusclePainYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomMusclePainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cMusclePainNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomMusclePainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cMusclePainUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomMusclePainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="9" Grid.Column="1">
                                        <CheckBox x:Name="cJointPainYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomJointPainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cJointPainNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomJointPainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cJointPainUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomJointPainFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="10" Grid.Column="1">
                                        <CheckBox x:Name="cHeadacheYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomHeadacheFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cHeadacheNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomHeadacheFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cHeadacheUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomHeadacheFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="11" Grid.Column="1">
                                        <CheckBox x:Name="cCoughYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomCoughFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cCoughNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomCoughFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cCoughUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomCoughFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="12" Grid.Column="1">
                                        <CheckBox x:Name="cDiffBreatheYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomDiffBreatheFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cDiffBreatheNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomDiffBreatheFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cDiffBreatheUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomDiffBreatheFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="13" Grid.Column="1">
                                        <CheckBox x:Name="cDiffSwallowYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomDiffSwallowFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cDiffSwallowNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomDiffSwallowFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cDiffSwallowUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomDiffSwallowFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="14" Grid.Column="1">
                                        <CheckBox x:Name="cSoreThroatYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomSoreThroatFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cSoreThroatNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomSoreThroatFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cSoreThroatUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomSoreThroatFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="15" Grid.Column="1">
                                        <CheckBox x:Name="cJaundiceYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomJaundiceFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cJaundiceNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomJaundiceFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cJaundiceUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomJaundiceFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="16" Grid.Column="1">
                                        <CheckBox x:Name="cConjunctivitisYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomConjunctivitisFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cConjunctivitisNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomConjunctivitisFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cConjunctivitisUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomConjunctivitisFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="17" Grid.Column="1">
                                        <CheckBox x:Name="cRashYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomRashFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cRashNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomRashFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cRashUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomRashFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="18" Grid.Column="1">
                                        <CheckBox x:Name="cHiccupsYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomHiccupsFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cHiccupsNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomHiccupsFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cHiccupsUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomHiccupsFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="19" Grid.Column="1">
                                        <CheckBox x:Name="cPainEyesYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomPainEyesFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cPainEyesNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomPainEyesFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cPainEyesUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomPainEyesFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="20" Grid.Column="1">
                                        <CheckBox x:Name="cUnconsciousYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomUnconsciousFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cUnconsciousNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomUnconsciousFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cUnconsciousUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomUnconsciousFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="21" Grid.Column="1">
                                        <CheckBox x:Name="cConfusedYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomConfusedFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cConfusedNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomConfusedFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cConfusedUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomConfusedFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Grid.Row="22" Grid.Column="1">
                                        <CheckBox x:Name="cOtherNonHemorrhagicYFinal" Content="{x:Static p:Resources.Yes}" IsChecked="{Binding SymptomOtherHemoFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource YesToCheckedConverter}}" />
                                        <CheckBox x:Name="cOtherNonHemorrhagicNFinal" Content="{x:Static p:Resources.No}" IsChecked="{Binding SymptomOtherHemoFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NoToCheckedConverter}}" />
                                        <CheckBox x:Name="cOtherNonHemorrhagicUFinal" Content="{x:Static p:Resources.PrintedFormUnknown}" IsChecked="{Binding SymptomOtherHemoFinal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource UnknownToCheckedConverter}}" />
                                    </StackPanel>
                                </Grid>

                                <StackPanel Height="25"/>

                                <TextBlock FontWeight="Bold" Text="{x:Static p:Resources.PrintedFormCommentsForThisPatient}" />
                                <TextBox MaxLength="4096" HorizontalAlignment="Left" VerticalScrollBarVisibility="Visible" Height="200" Width="700"
                                    Text="{Binding CommentsOnThisPatient, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                 />
                            </StackPanel>

                        </StackPanel>

                    </StackPanel>

                </ScrollViewer>
            </Border>

            <Grid Grid.Row="0" Grid.RowSpan="4" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0, 72, 0, 0" MaxWidth="300" MaxHeight="110"
              Visibility="{Binding IsLocked, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}">
                <Grid.Style>
                    <Style TargetType="{x:Type Grid}">
                        <Style.Triggers>
                            <Trigger Property="Visibility" Value="Visible">
                                <Trigger.EnterActions>
                                    <BeginStoryboard>
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <!--<ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" DecelerationRatio="1" BeginTime="00:00:00" Duration="00:00:0.3">
                                            <SplineThicknessKeyFrame KeyTime="00:00:00" Value="20,0,-20,0" />
                                            <SplineThicknessKeyFrame KeyTime="00:00:0.3" Value="0,0,0,0" />
                                        </ThicknessAnimationUsingKeyFrames>-->
                                        </Storyboard>
                                    </BeginStoryboard>
                                </Trigger.EnterActions>
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </Grid.Style>
                <Border BorderBrush="DarkBlue" BorderThickness="2, 2, 2, 2" Background="{StaticResource HighlightBrush}" Padding="10">
                    <Button>
                        <Button.Style>
                            <Style TargetType="{x:Type Button}">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="{x:Type Button}">
                                            <ContentPresenter />
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Button.Style>
                        <Button.Content>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <StackPanel Grid.Column="1">
                                    <TextBlock Grid.Column="1" Foreground="White" TextWrapping="WrapWithOverflow">This record is locked by another user and may not be edited.</TextBlock>
                                </StackPanel>

                                <StackPanel Grid.Column="0" Margin="0, 0, 20, 0" VerticalAlignment="Center">
                                    <Path Width="19" Height="24" Stretch="Fill" Fill="White" Data="F1 M 22.17,36.4216L 25.3369,36.4216L 25.3369,31.6711C 25.3369,24.6745 31.0087,19.0027 38.0053,19.0027C 45.0019,19.0027 50.6737,24.6745 50.6737,31.6711L 50.6737,36.4216L 53.841,36.4216L 53.8411,57.008L 22.17,57.008L 22.17,36.4216 Z M 45.9231,31.6711C 45.9231,27.2982 42.3782,23.7533 38.0053,23.7533C 33.6324,23.7533 30.0875,27.2982 30.0875,31.6711L 30.0875,36.4216L 45.923,36.4216L 45.9231,31.6711 Z"/>
                                </StackPanel>

                            </Grid>
                        </Button.Content>
                    </Button>
                </Border>
            </Grid>


            <Grid Grid.Row="0" Grid.RowSpan="4" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0, 72, 0, 0" MaxWidth="300" MaxHeight="110"
              Visibility="{Binding Errors.HasErrors, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}">
                <Grid.Style>
                    <Style TargetType="{x:Type Grid}">
                        <Style.Triggers>
                            <Trigger Property="Visibility" Value="Visible">
                                <Trigger.EnterActions>
                                    <BeginStoryboard>
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <!--<ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" DecelerationRatio="1" BeginTime="00:00:00" Duration="00:00:0.3">
                                            <SplineThicknessKeyFrame KeyTime="00:00:00" Value="20,0,-20,0" />
                                            <SplineThicknessKeyFrame KeyTime="00:00:0.3" Value="0,0,0,0" />
                                        </ThicknessAnimationUsingKeyFrames>-->
                                        </Storyboard>
                                    </BeginStoryboard>
                                </Trigger.EnterActions>
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </Grid.Style>
                <Border BorderBrush="Tomato" BorderThickness="2, 2, 2, 2" Background="White" Padding="10">
                    <Button>
                        <Button.Style>
                            <Style TargetType="{x:Type Button}">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="{x:Type Button}">
                                            <ContentPresenter />
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Button.Style>
                        <Button.Content>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <StackPanel Grid.Column="1">
                                    <TextBlock Grid.Column="1" TextWrapping="WrapWithOverflow">This record contains errors. Please correct all errors before proceeding.</TextBlock>

                                    <Button
                                    Command="{Binding ToggleErrorDisplayCommand}"
                                    HorizontalAlignment="Center" Margin="0, 6, 0, 2">
                                        <Span FontWeight="Bold">View Errors</Span>
                                    </Button>
                                </StackPanel>

                                <StackPanel Grid.Column="0" Margin="0, 0, 20, 0" VerticalAlignment="Center">
                                    <Path Width="24" Height="24" Stretch="Fill" Fill="Tomato" Data="F1 M 58.5832,55.4172L 17.4169,55.4171C 15.5619,53.5621 15.5619,50.5546 17.4168,48.6996L 35.201,15.8402C 37.056,13.9852 40.0635,13.9852 41.9185,15.8402L 58.5832,48.6997C 60.4382,50.5546 60.4382,53.5622 58.5832,55.4172 Z M 34.0417,25.7292L 36.0208,41.9584L 39.9791,41.9583L 41.9583,25.7292L 34.0417,25.7292 Z M 38,44.3333C 36.2511,44.3333 34.8333,45.7511 34.8333,47.5C 34.8333,49.2489 36.2511,50.6667 38,50.6667C 39.7489,50.6667 41.1666,49.2489 41.1666,47.5C 41.1666,45.7511 39.7489,44.3333 38,44.3333 Z "/>
                                </StackPanel>

                            </Grid>
                        </Button.Content>
                    </Button>
                </Border>
            </Grid>

            <local:Occupations Grid.Row="2" Grid.Column="0" Visibility="{Binding IsShowingOccupationPanel, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}" />
            <local:UnexplainedBleeding Grid.Row="2" Grid.Column="0" Visibility="{Binding IsShowingBleedingPanel, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}" />
            <!--<local:SelectEpiCaseClassification Grid.Row="2" Grid.Column="0" Visibility="{Binding EpiCaseClassification, Converter={StaticResource CaseClassificationToVisibilityConverter}, FallbackValue=Collapsed}" />-->
            
            <StackPanel Grid.Row="3" Grid.Column="0" Margin="0, 10, 0, 0" Grid.ColumnSpan="3" Orientation="Horizontal" HorizontalAlignment="Right">
                <Button Margin="5, 5, 5, 0" x:Name="btnLongForm" MinWidth="130" Height="28" Command="{Binding SwitchToLegacyEnterCommand}" Content="Switch to Long Form" />
                <!--<Button Margin="5, 5, 5, 0" MinWidth="130" Height="28" Command="{Binding ToggleValueChangesDisplayCommand}" Content="View Changes" IsEnabled="{Binding FieldValueChanges.Count, Converter={StaticResource CountToEnabledConverter}}" />-->
                <Button Margin="5, 5, 5, 0" x:Name="btnSave" MinWidth="130" Height="28" Command="{Binding SaveCommand}" Content="Save"     />
                <Button Margin="5, 5, 5, 0" x:Name="btnSaveAndClose" MinWidth="130" Height="28" Command="{Binding SaveAndCloseCommand}" Content="Save and Close" />
                <Button Margin="5, 5, 0, 0" x:Name="btnCancel" MinWidth="130" Height="28" Command="{Binding CancelEditModeCommand}" Content="{x:Static p:Resources.Cancel}"  />
            </StackPanel>

            <DockPanel Margin="-20" Background="#44000000" Grid.RowSpan="100" Grid.ColumnSpan="100" Visibility="{Binding IsShowingLabResultPanel, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}" >
                <local:ShortLabResultForm DataContext="{Binding LabResultsView.CurrentItem}" Width="860" Grid.RowSpan="100" Grid.ColumnSpan="100" HorizontalAlignment="Center" Height="Auto" VerticalAlignment="Center" />
            </DockPanel>

            <local:RecordErrors Margin="-20" Grid.RowSpan="100" Grid.ColumnSpan="100" Visibility="{Binding IsShowingErrorDetailPanel, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}" />
            <local:FieldValueChanges Grid.RowSpan="100" Grid.ColumnSpan="100" Visibility="{Binding IsShowingFieldValueChangesPanel, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}" />
            
        </Grid>
    </Border>
</UserControl>
